import Vue from 'vue'
import VueRouter from 'vue-router'
import Isearch from '../index/search'
import Indexall from '../index/Indexall'
import Top from '../index/top'
import Index from '../index/index'

import All from '../all/all'
import Login from '../login/login'
import AllDetials from '../components/allDetials'
import Essay from '../all/essay'
import Music from '../all/music'
import Logins from '../login/logins'
import Regin from '../login/regin'
import Search from '../login/search'
import Setting from '../login/settings'

import Serial from '../all/serial'
import Hp from '../all/hp'
import Question from '../all/question'
import Xinxi from '../login/xinxi'
import Guan from '../login/guan'
import Ge from '../login/ge'
import Personal from '../login/personal'
import Makexiao from '../login/makexiao'
import Fen from '../login/fen.vue'
// 天气
import Weather from '../components/weather'

import Navbar from '../all/navbar.vue'


Vue.use(VueRouter)

let routes = [
  {path:'',component:Index},
  {path:'/index',component:Index , children: [
      {path: './index/top', components:Top}
    ]},
  {path:'/indexall/:id',component:Indexall},
  {path:'/search',component:Isearch},
  {path:'/all',component:All},
  {path:'/login',component:Login},
  {path:'/allDetials/:msg',component:AllDetials},
  {path:'/' , component:Navbar},
  {path:'/components/:data',component:Weather},
  {path:'/allDetials/essay/:id',component:Essay},
  {path:'/allDetials/music/:id',component:Music},
  {path:'/logins',component:Logins},
  {path:'/regins',component:Regin},
  {path:'/searchs',component:Search},
  {path:'/settings',component:Setting},
  {path:'/allDetials/serial/:id',component:Serial},
  {path:'/allDetials/hp/:id', component:Hp},
  {path:'/allDetials/question/:id', component:Question},
  {path:'/xinxis',component:Xinxi},
  {path:'/guans',component:Guan},
  {path:'/ges',component:Ge},
  {path:'/personals',component:Personal},
  {path:'/makexiaos',component:Makexiao},
  {path:'/makexiaos/:item',component:Makexiao},
  {path:'/fens',component:Fen}

]

let router = new VueRouter({
  routes
})

export default router
